package abstergo.tbs.betterasyc.AsycBase;

public class AsycResult<TR>
{
    public  static final int  SUCCESS= 1,FAIL=0;

    private TR result;
    private int code=SUCCESS;
    public int getCode() {
        return code;
    }

    public AsycResult setCode(int code) {
        this.code = code;
        return this;
    }

    public TR getResult() {
        return result;
    }

    public AsycResult<TR> setResult(TR result) {
        this.result = result;
        return this;
    }
}